package com.rj.bd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 预警表
 * @TableName alarm
 */
@TableName(value ="alarm")
@Data
public class Alarm implements Serializable {
    /**
     * 预警id
     */
    @TableId
    private Long aid;

    /**
     * 设备id
     */
    private Long did;

    /**
     * 温度
     */
    private Integer temperature;

    /**
     * 湿度
     */
    private Integer hum;

    /**
     * 光照强度
     */
    private Integer strength;

    /**
     * 土壤ph值
     */
    private Integer ph;

    /**
     * 报警时间
     */
    private Date alarmtime;

    /**
     * 报警原因
     */
    private String alarmreasons;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}